package com.yizn.learn.springext.converter;

import com.sun.org.apache.xpath.internal.operations.Number;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * project : my-learn
 * <p>  </p>
 *
 * @author yisl
 * @date 2023-01-13【星期五】
 **/

@RequestMapping("/user")
@RestController
public class UserController {

    @RequestMapping("/save")
    public String save(@RequestBody User user) {
        return "success";
    }

    @GetMapping("/hello")
    public void hello(Date date){
        System.out.println(date);
    }


}
